package com.czwx.bee.business.manager.modular.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author:wiki
 * @Date:Create in 2018/7/12 0012 下午 4:22
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(value="ShopAddUserDto",description="商户开户")
public class ShopAddUserDto {

    @NotNull(message = "商户id不能为空")
    @ApiModelProperty(value = "渠道id")
    private Long drainageId;

    @ApiModelProperty(value = "登录账号")
    @NotNull(message = "用户名不能为空")
    @Length(min = 5, max = 20, message = "用户名5-20长度")
    private String loginName ;

    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password ;

    @ApiModelProperty(value = "姓名")
    @NotNull(message = "姓名不能为空")
    private String name ;
}
